package com.sync.utils.project.demo.service;

import com.sync.utils.common.base.service.BaseService;
import com.sync.utils.project.demo.pojo.*;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface UserService extends BaseService<UserDto> {

    UserDto getUserInfo(String account);

    UserInfo getByAccount(String account);

    Integer getByAccountCounts(String account);

    PageView<UserDto> getUserList(UserReq userReq);

    JHApiResult getCityWeather(String city);

    JHApiResult getNews(HttpServletRequest request,Integer page,Integer pageSize);

    JHApiResult getJokes(HttpServletRequest request,Integer page,Integer pageSize);

    boolean saveJokes(List<JokeVo> jokeVoList);

    UserRes getUser(String userId);

    int updateUserById(UserVo userVo);

    int deleteUser(List<String> collectIds);

    int saveUser(UserVo userVo);
}